package client.control;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.util.ArrayList;

import client.gui.ClientFrame;

import common.IClient;
import entity.Fish;

public class ClientControl extends UnicastRemoteObject implements IClient, Runnable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1065579696253300326L;
	
	public String name = "";
	public int id;

	protected ClientControl() throws RemoteException {
		super();
		
		ClientFrame cf = new ClientFrame(this);
	}

	@Override
	public ArrayList<Fish> getFishes() throws RemoteException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int getId() throws RemoteException {
		// TODO Auto-generated method stub
		return id;
	}

	@Override
	public void init() throws RemoteException {
		// TODO Auto-generated method stub

	}

	@Override
	public void pause() throws RemoteException {
		// TODO Auto-generated method stub

	}

	@Override
	public String getName() throws RemoteException {
		// TODO Auto-generated method stub
		return name;
	}

	public static void main(String[] args) {
		
		try {
			 ClientControl cc = new ClientControl();
			 Thread t = new Thread(cc);
			 t.start();
		} catch (RemoteException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
	}

	@Override
	public void run() {
		// TODO Auto-generated method stub
		
	}
		
}
